<script setup lang="ts">
import { reactive } from "vue";
import RecArticles from "./components/RecommendedArticles.vue";
import Carousel from "~/components/CommonComponents/Carousel/index.vue";
import Side from "~/components/layout/Side/index.vue";
import type { modaldataType } from "~/components/CommonComponents/types/idnex";

const modaldata = reactive<modaldataType[]>(
  [{
    id: 0,
    url: "http://blog-imges-v1.oss-cn-beijing.aliyuncs.com/blog/images/background/wallhaven-p9o51m.png",
  },
  {
    id: 1,
    url: "http://blog-imges-v1.oss-cn-beijing.aliyuncs.com/blog/images/background/wallhaven-28rp2g.jpg",
  },
  ],
);
</script>

<template>
  <div class="home">
    <Carousel :modaldata="modaldata" />
    <RecArticles />
    <div class="homeContent">
      <div class="ContentSubject" />

      <Side class="SideContent" />
    </div>
  </div>
</template>

<style scoped lang="less">
.homeContent {
  width: 100%;
  max-width: 1440px;
  min-width: 980px !important;
  padding: 0 35px;
  margin: 0 auto;
  margin-top: 15px;
  display: flex;

  .SideContent {
    width: 280px;
    height: 600px;
    margin-right: 20px;
  }

  .ContentSubject {
    width: 100%;
    height: 600px;
  }
}
</style>
